package org.jeecg.modules.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.data.entity.TDataReport;
import org.jeecg.modules.data.entity.TDataStatistics;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * @Description: t_data_statistics
 * @Author: jeecg-boot
 * @Date:   2025-05-20
 * @Version: V1.0
 */
public interface ITDataStatisticsService extends IService<TDataStatistics> {

    /**
     * 区县下上报采收情况后统计上报数据
     * @param statistics
     */
    void saveOrUpStatis(TDataStatistics statistics);

    /**
     * 根据区域查询是否存在统计信息
     * @param statistics
     * @return
     */
    TDataStatistics selectDataByCantCode(TDataStatistics statistics);

    /**
     * 查询统计列表
     * @param tDataStatistics
     * @return
     */
    List<TDataStatistics> selectDataList(TDataStatistics tDataStatistics);

    /**
     * 根据id查询统计详情
     * @param id
     * @return
     */
    TDataStatistics getDataInfoById(String id);

    /**
     * 生成导出文档
     */
    List<Map<String, String>> generateReportFiles(TDataStatistics tDataStatistics, String wordFile, String excelFile, String reporturl);

    /**
     * 删除后重新计算统计
     * @param tDataReport
     */
    void updateBatchByReport(TDataReport tDataReport);
}
